package com.lezhi.socialgram.mapper.sys;

import com.lezhi.socialgram.model.sys.VerifySMSCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by daizhen on 2017/3/30.
 */
@Mapper
public interface SMSVerifyCodeMapper {

    int addVerifySMSCode(VerifySMSCode verifySMSCode);

    List<VerifySMSCode> getVerifySMSCodeList(VerifySMSCode verifySMSCode);

    int updateVerifySMSCodeStatus(VerifySMSCode verifySMSCode);

    String getTelNumByUserId(@Param("userId") Long userId, @Param("table") String table);

}
